package com.nisco;

import com.nisco.service.MainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MainController {
    @Autowired
    private MainService mainService;
    @GetMapping("/")
    public String index(String name) {
        long l = 100l;
        return "hello >>" + l;
    }

    @GetMapping("/demo")
    public String demo() {
        return mainService.demo();
    }
}
